<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/product_mobile.js"></script> 
<script src="/wondershare/js/jquery.js"></script> 
<script src="../../fckeditor/fckeditor.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../images/unti.js"></script>
<title>产品<{$tile}>页</title>
</head>
<style>
#table_info td
{
	height:60px;
}
.tdone{
	text-align:right;
}
.tdtwo{
	text-indent:10px;
}
a.re_error {width:175px; height:20px;color: red; padding:0 3px;margin-left:10px; line-height:21px; background:url(../images/file/error.gif) no-repeat;cursor:pointer;float:left; }
input.error, textarea.error, select.error { border-color:#FB7E81 #FB7E81 #FB7E81 #FB7E81;background:url(../images/file/invalid_line.gif) bottom repeat-x;}
.popup_container{border:3px #E1E1E1 solid;text-align:left;font-family:Geneva, Arial, Helvetica, sans-serif;z-index:50;padding:5px}
.popup_container .popup_main{border:1px solid #A7A6A6;background:#FFF;color:#3F3F3F;word-wrap:break-word;word-break:break-all;overflow:hidden;width:310px}
.popup_container .popup_main .popup_title{width:100%;height:28px!important;line-height:28px!important;background:#F1F1F1;border-bottom:1px solid #DEDEDE;cursor:move}
.popup_container .popup_main .popup_title h3{font-size:14px;float:left;height:28px!important;line-height:28px!important;text-indent:0!important;margin:0 auto}
.popup_container .popup_main .popup_title button{background:url(../images/file/pop_close.png) no-repeat;width:17px;height:17px;float:right;border:0;cursor:pointer;margin:5px 5px 0 0}
.popup_container .popup_main .popup_title button:hover{background-position:-19px 0}
.popup_container .popup_main .popup_container_tips{margin:20px 20px 0}
.popup_container .popup_main .global_tip_button{height:41px;width:100%;background:#F1F1F1;border-top:1px solid #E9E9E9;text-align:center;position:relative}
.popup_container .popup_main .global_tip_button button{margin-right:10px;line-height:21px;margin-top:10px;text-align:center}
.popup_container .popup_main .alert{background:url(statics/info.gif) no-repeat}
.popup_container .popup_main .confirm{background:url(statics/important.gif) no-repeat}
.popup_container .popup_main .prompt{background:url(statics/help.gif) no-repeat}
.popup_container .popup_main .gb_tips{font-size:12px!important;text-align:left;margin:0!important;padding:0 0 10px 50px}
.popup_container .popup_main .gb_tips p{line-height:21px;font-size:12px!important;margin:0 0 15px}
.prompt_txt{border:1px solid #A7A6AA;width:220px;height:19px}
.prompt_err{display:none;background:#fffaea url(statics/erroralert.gif) no-repeat 8px center;_padding-top:4px;border:1px solid #ffe591;font-size:12px;padding:3px 20px 4px 34px}
</style>

<body   onload="create()">

<h1>

<span class="action-span1">
<a href="/wondershare/product.php?action=productList">移动产品信息管理</a>
</span>
<span id="search_id" class="action-span1"> - 新产品<{$tile}> </span>
<div style="clear:both"></div>
</h1>

<div id="tabbar-div">
	<p  id="tab_info">
       <span id="basic-tab" class="tab-front"><b>Basic</b></span><span id="description-tab" class="tab-back" >Description</span>
	   <span id="features-tab" class="tab-back" >Features</span><span id="others-tab" class="tab-back" >Others</span>
      </p>
    </div>
<div id="tabbody-div"  style=" width:1100px;" >
      <form  name="product_form"  id="product_form" method="post" action="/wondershare/product_mobile.php?action=index" enctype="multipart/form-data" onsubmit="return product_form_submit();" >
        <!-- Basic -->
      <table table align="center" width="90%"  cellpadding="1" cellspacing="1" id="basic-table">
		  <{if $form_act == 'add'}>
		  <tr>
            <td class="label">*产品：</td>
            <td><input type="text" size="37" style="float:left;;" value="<{$product.id}>" name="products_id" id="products_id" disabled="disabled">
			<input type="button" value="选择产品"   name="get_info1" style="margin-left:10px;" onclick="getproductlist('products_id')" />
			<input type="hidden" name="hidden_products_id"  id="hidden_products_id"/>
			</td>
          </tr>
		  <{else}>
		  <tr>
            <td class="label">*产品：</td>
            <td>
			<span style="color:#FF0000"><b><{$product.product_name|escape}></b></span>
			</td>
          </tr>
		  <{/if}>
	  <tr>
		<td class="tdone">产品标签：</td>
		<td class="tdtwo">
		<{$all_tag}>
		</td>
	  </tr>
    <tr>
      <td class="tdone" >产品分类（三级）：</td>
      <td class="tdtwo" >
		<select name="parent_id" id="parent_id" style="width:220px;" >
		<option value="0">无</option>
		 <{$cat_select}>
		 </select>
	  </td>

    </tr>
    <tr>
      <td class="tdone" >产品配图1：</td>
      <td class="tdtwo" ><input type="text"  id="pic_url1" name="pic_url1" errormsg=""  rate="0"  value="<{$product.pic_url1|escape}>" style="float:left;margin-left:10px;margin-top:10px;  width:400px;"/><p style="color:#FF0000; margin-left:20px;margin-top:10px;">(备注：请填写URL绝对地址)</p></td>
    </tr>
	
	 <tr>
      <td class="tdone" >产品配图2：
	  </td>
      <td class="tdtwo" ><input type="text"  id="pic_url2" name="pic_url2" errormsg=""  rate="0"  value="<{$product.pic_url2|escape}>" style="float:left;margin-left:10px; width:400px;margin-top:10px; "/></td>
    </tr>
    <tr>
      <td class="tdone" >产品配图3：</td>
      <td class="tdtwo" ><input type="text"  id="pic_url3" name="pic_url3" errormsg=""  rate="0"  value="<{$product.pic_url3|escape}>" style="float:left;margin-left:10px;margin-top:10px;  width:400px;"/></td>
    </tr>
<tr>
      <td class="tdone" >产品盒子配图：</td>
      <td class="tdtwo" ><input type="text"  id="box_url" name="box_url" errormsg=""  rate="0"  value="<{$product.box_url|escape}>" style="float:left;margin-left:10px;margin-top:10px;  width:400px;"/></td>
    </tr>
   <tr>
	<td class="label">底部推荐产品：</td>
	<td>
	
	<textarea name="m_product_recomm" id="m_product_recomm" size="50"  style="width:400px; height:100px; float:left; 
	margin-top:10px; "  disabled="disabled"/> <{$product.recommended_name|escape}></textarea>
	<input type="button" value="选择产品"   name="get_info2" style="margin-left:20px; margin-top:10px; " 
	onclick="getproductlist('m_product_recomm');" />
	<input type="hidden" id="h_m_product_recomm"  name="h_m_product_recomm"   value="<{$product.m_product_recomm}>"/>
	</td>
  </tr> 
  </table>
		
		<!-- description -->
        <table width="90%" style="display:none" id="description-table">
          <tbody>
<!--		  <tr >
            <td ><div style="margin-left:200px; width:150px; margin-top:10px;">
			<span style="margin-left:60px;">产品标语：</span><br /><br />
			<span style="color:#FF0000; ">(30-70个字符广告语)</span>
			</div>
			</td>
			<td >
			 <textarea name="product_ad" size="50"    style="margin-left:10px; width:500px; height:50px;overflow:hidden; " /> <{$product.product_ad|escape}></textarea>
			</td>
          </tr>-->
		  
		   <tr >
            <td ><div style="margin-left:200px; width:150px; margin-top:20px;">
			<span style="margin-left:60px;">产品短描述：</span><br /><br />
			<span style="color:#FF0000; ">(80-120个字符,主要应用于各类目录页面介绍)</span>
			</div>
			</td>
			<td >
			 <textarea name="m_product_intro" size="50"   style="margin-left:10px;margin-top:10px; 
			 width:500px; height:70px;overflow:hidden; " /><{$product.m_product_intro|escape}> </textarea>
			</td>
          </tr>
		  
		   <tr >
            <td ><div style="margin-left:200px; width:150px; margin-top:20px;">
			<span style="margin-left:60px;">产品长描述：</span><br /><br />
			<span style="color:#FF0000; ">(120-200个字符,主要应用于产品页面的产品概述)</span>
			</div>
			</td>
			<td>
			 <textarea name="m_product_content" size="50"     style="margin-left:10px;margin-top:10px; 
			 width:500px; height:80px;overflow:hidden; " /> <{$product.m_product_content|escape}></textarea>
			</td>
          </tr>
		  
<!--		   <tr >
            <td ><div style="margin-left:200px; width:150px; margin-top:20px;">
			<span style="margin-left:20px;">产品核心功能列表：</span><br /><br />
			<span style="color:#FF0000; ">(每行列表前后加上&lt;li&gt;&lt;/li&gt;标签，需要加粗的文章前后加上&lt; strong&gt;&lt;/strong&gt;，主要应用于头部Banner处)</span>
			</div>
			</td>
			<td >
			 <textarea name="product_key_feature" size="50" style="margin-left:10px;margin-top:10px; 
			 width:500px; height:100px; " /><{$product.product_key_feature|escape}> </textarea>
			</td>
          </tr>-->
        </tbody></table>
		
		
		<!-- features -->
        <table width="90%" style="display:none" id="features-table">
          <tbody>
		  
		  <{foreach from=$feature item=item  key=key}>
		  <{assign var="key0" value=$key+1}> 
		  <tr>
            <td ><div style="margin-left:200px; width:120px; margin-top:40px;">
			Key Feature<{$key0}>标题：
			</div>
			</td>
			<td >
			 <input type="text" style="width:400px; margin-top:30px;" id="title_feature<{$key0}>" name="title_feature<{$key0}>"   value="<{$item.feature_title|escape}>"/>
			</td>
          </tr>
		  
		   <tr >
            <td ><div style="margin-left:200px; width:150px; margin-top:20px;">
			<span style="">Key Feature<{$key0}>描述：</span><br /><br />
			</div>
			</td>
			<td >
			 <textarea size="50"    style="margin-left:0px;margin-top:10px; 
			 width:400px; height:80px;overflow:hidden; " id="description_feature<{$key0}>" name="description_feature<{$key0}>"/><{$item.feature_intro|escape}> </textarea>
			</td>
          </tr>
		  
		   <tr >
            <td ><div style="margin-left:200px; width:120px; margin-top:20px;">
			Key Feature<{$key0}>小配图：
			</div>
			</td>
			<td >
			 <input type="text" style="width:400px; margin-top:20px;" id="image_min_feature<{$key0}>" name="image_min_feature<{$key0}>" value="<{$item.feature_pic_min|escape}>"/><span style="color:#FF0000; margin-left:20px;margin-top:20px;">(备注：请填写URL绝对地址)</span>
			</td>
          </tr>
		  
		  <tr >
            <td ><div style="margin-left:200px; width:120px; margin-top:20px;">
			Key Feature<{$key0}>大配图：
			</div>
			</td>
			<td >
			 <input type="text"  style="width:400px;margin-top:20px; " id="image_max_feature<{$key0}>" name="image_max_feature<{$key0}>" value="<{$item.feature_pic_max|escape}>"/>
			 <input type="hidden" name="feature_id<{$key0}>" value="<{$item.feature_id}>" />
			 <span style="color:#FF0000; margin-left:20px;margin-top:20px;">(备注：请填写URL绝对地址)</span>
			</td>
          </tr>
		  
		   <{/foreach}>
		   
		  <{if $c_feature <8}>
		  <tr id="add_feature">
		  <td></td>
		  <td><input type="button" value="添加Key Feature" id="button_feature" name="button_feature" <{if $c_feature == 0 && $c_m_feature ==  0}> style="margin-top:20px; margin-left:350px;" <{else}>style="margin-top:20px; "  <{/if}>   onclick="add_feature(1)"  />
		  
		  </td></tr>
		  <{/if}>
		  <input type="hidden" name="feature_start" id="feature_start" value="<{$c_feature}>"  />
		  
		  <{foreach from=$m_feature item=item  key=key}>
		  <{assign var="key1" value=$key+1}> 
		  <tr >
            <td ><div style="margin-left:200px; width:120px; margin-top:50px;">
			More Feature<{$key1}>标题：
			</div>
			</td>
			<td >
			 <input type="text" name="title_more_feature<{$key1}>" id="title_more_feature<{$key1}>"  value="<{$item.feature_title|escape}>" style="width:400px; margin-top:40px;" />
			</td>
          </tr>
		  
		   <tr >
            <td ><div style="margin-left:200px; width:150px; margin-top:20px;">
			<span style="">More Feature<{$key1}>描述：</span>
			</div>
			</td>
			<td >
			 <textarea name="description_more_feature<{$key1}>" id="description_more_feature<{$key1}>" size="50"    value="" style="margin-left:0px;margin-top:10px; 
			 width:400px; height:70px;overflow:hidden; " /><{$item.feature_intro|escape}> </textarea>
			</td>
          </tr>
		  
		   
		  
		  <tr >
            <td ><div style="margin-left:200px; width:120px; margin-top:20px;">
			More Feature<{$key1}>配图：
			</div>
			</td>
			<td >
			 <input type="text" name="image_more_feature<{$key1}>" id="image_more_feature<{$key1}>" style="width:400px;margin-top:20px; " value="<{$item.more_feature_pic|escape}>" />
			 <input type="hidden" name="more_feature_id<{$key1}>" value="<{$item.feature_id}>" />
			 <span style="color:#FF0000; margin-left:20px;margin-top:20px;">(备注：请填写URL绝对地址)</span>
			</td>
          </tr>
		  
		   <{/foreach}>
		   
		   <{if $c_m_feature <8}>
		  <tr id="add_more_feature">
		  <td></td>
		  <td><input type="button" id="button_more_feature" name="button_more_feature" value="添加More Feature" <{if $c_feature == 0 && $c_m_feature ==  0}> style="margin-top:20px; margin-left:350px;" <{else}>style="margin-top:20px; "  <{/if}>   onclick="add_feature(2)"/>
		  
		  </td></tr>
		  <{/if}>
		  <input type="hidden" name="more_feature_start" id="more_feature_start" value="<{$c_m_feature}>"  />
        </tbody></table>
		
		
		
		<!-- others -->
        <table width="90%" style="display:none" id="others-table">
          <tbody>
		  <tr >
            <td ><div style="margin-left:100px;  width:150px; margin-top:10px;">
			<span style="">系统支持说明 - 简单：</span><br /><br />
			<span style="color:#FF0000; ">(100个字符以内)</span>
			</div>
			</td>
			<td >
			 <input type="text" name="m_product_support_intro" style="width:500px;margin-top:10px; "  value="<{$product.m_product_support_intro|escape}>"/>
			</td>
          </tr>
		  
		   
		  
<!--		   <tr >
            <td ><div style="margin-left:100px; width:150px; margin-top:20px;">
			<span style="">技术参数表单：</span><br /><br />
			<span style="color:#FF0000; ">(采用基础的html<br />代码结构，不要涉<br />及样式)</span>
			</div>
			</td>
			<td >
			 <textarea name="techSpec_content_table" id="techSpec_content_table" size="50"    value="" /> <{$product.techspec_content_table|escape}></textarea>
			</td>
          </tr>
		  
		   <tr >
            <td ><div style=" margin-left:100px; width:150px; margin-top:20px;">
			<span style="">产品基础Guide：</span><br /><br />
			<span style="color:#FF0000; ">(采用基础的html<br />代码结构，不要涉<br />及样式)</span>
			</div>
			</td>
			<td >
			 <textarea name="product_guide_content" id="product_guide_content" size="50"    value="" /> <{$product.product_guide_content|escape}></textarea>
			</td>
          </tr>-->
        </tbody></table>
		
		
		
		
        <div  style="margin-left:380px; margin-top:20px;" id="submit_div">
          <input type="hidden"  name="product_id"  id="product_id" value="<{$product.id}>">
     
		  <input type="hidden"   value="<{$form_act}>" name="type" id='type'>
		  
          <input type="submit"   class="button" value="<{$tile}>" name="sub_from">
          <input type="reset" class="button" value=" 重置 ">
        </div>
 
      </form>
    </div>
</body>
</html>